package com.yc.snacknet_vue.bean;

import java.io.Serializable;

/**
 * 商品类型实体类
 * company 源辰信息
 * @author 38929
 * @date 2021年8月6日
 * @version 1.0
 * Email 1198865589@qq.com
 */
public class GoodsType implements Serializable{

	private static final long serialVersionUID = -382957817387907615L;
	private Integer tno;//类型编号
	private String tname;//类型名
	private Integer status;//状态  1 上架  0 下架
	
	@Override
	public String toString() {
		return "GoodsTypeBean [tno=" + tno + ", tname=" + tname + ", status=" + status + "]";
	}
	
	public Integer getTno() {
		return tno;
	}

	public void setTno(Integer tno) {
		this.tno = tno;
	}

	public String getTname() {
		return tname;
	}

	public void setTname(String tname) {
		this.tname = tname;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public GoodsType() {
		super();
	}
	public GoodsType(int tno, String tname, int status) {
		super();
		this.tno = tno;
		this.tname = tname;
		this.status = status;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + status;
		result = prime * result + ((tname == null) ? 0 : tname.hashCode());
		result = prime * result + tno;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		GoodsType other = (GoodsType) obj;
		if (status != other.status)
			return false;
		if (tname == null) {
			if (other.tname != null)
				return false;
		} else if (!tname.equals(other.tname))
			return false;
		if (tno != other.tno)
			return false;
		return true;
	}
}
